<!--{eval
	$SS =& $_G['loader']->model('item:subjectsetting');
	$tplsetting = $SS->read($subject[sid]);
}-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=$_G[charset]" />
<meta http-equiv="x-ua-compatible" content="ie=edge" />
<title>$_HEAD[title] - Powered by Modoer</title>
<meta name="keywords" content="$_HEAD[keywords]" />
<meta name="description" content="$_HEAD[description]" />
<link rel="stylesheet" type="text/css" href="{URLROOT}/static/images/icons.css?{$_G[modoer][build]}" />
<link rel="stylesheet" type="text/css" href="{URLROOT}/{$_G[tplurl]}css_common.css?{$_G[modoer][build]}" />
<link rel="stylesheet" type="text/css" href="{URLROOT}/static/images/mdialog.css?{$_G[modoer][build]}" />
<script type="text/javascript" src="{URLROOT}/data/cachefiles/config.js?{$_G[cfg][js_cache_flag]}"></script>
<script type="text/javascript">
var sid = $subject[sid];
var mod = modules['{$MOD[flag]}'];
var navscript = '{SUB_NAVSCRIPT}';
website.module.flag = '{$MOD[flag]}';
website.module.page = '{$_GET['act']}';
</script>
<script type="text/javascript" src="{URLROOT}/static/javascript/jquery.js?{$_G[modoer][build]}"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/jquery.plugin.js?{$_G[modoer][build]}"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/common.js?{$_G[modoer][build]}"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/mdialog.js?{$_G[modoer][build]}"></script>
<!--{if !empty($MOD) && $MOD['flag']!='member' && $MOD['flag']!='item' && is_file(MUDDER_ROOT . 'static/javascript/' . $MOD['flag'] . '.js')}-->
<script type="text/javascript" src="{URLROOT}/static/javascript/$MOD[flag].js?{$_G[modoer][build]}"></script>
<!--{/if}-->
<!--{if SUB_NAVSCRIPT=='item/detail' && $user->isLogin && $subject[owner]==$user->username && !$is_preview}-->
<script type="text/javascript" src="{URLROOT}/static/javascript/item_setting.js?{$_G[modoer][build]}"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/jquery.colorpicker.js?{$_G[modoer][build]}"></script>
<!--{/if}-->
<script type="text/javascript" src="{URLROOT}/static/javascript/member.js?{$_G[modoer][build]}"></script>
<script type="text/javascript" src="{URLROOT}/static/javascript/item.js?{$_G[modoer][build]}"></script>
<style type="text/css">@import url("{ITEM_TPL_DIR}/style.css?{$_G[modoer][build]}");</style>
<!--{if $_CFG[headhtml]}-->$_CFG[headhtml]<!--{/if}-->
</head>
<body>
<div id="ajax_loading"></div>
<!--{if $is_preview}-->
<div class="head-preview">
	<a href="javascript:item_preview_exit($sid);">退出预览模式</a>
</div>
<!--{/if}-->
<script type="text/javascript">
$(document).ready(function() {
	$("#head_topmenu_src").powerFloat({
		position:"3-2",
		offsets:{x:0,y:-1},
		showCall: function() {
			$(this).addClass("hover");    
		},
		hideCall: function() {
			$(this).removeClass("hover");
		}
	});
	$("#assistant_menu").powerFloat({
		position:"3-2",
		offsets:{x:0,y:-1},
		showCall: function() {
			$(this).addClass("hover");    
		},
		hideCall: function() {
			$(this).removeClass("hover");
		}
	});
	$(".J_prowerfloat").powerFloat({reverseSharp:true});
});
</script>
<div class="head-top">
	<div class="head-top-center">
		<div class="head-top-logo"><a href="{url modoer/index}" title="$_CFG[sitename]"><img src="{URLROOT}/static/images/logo_s.png" alt="$_CFG[sitename]" /></a></div>
		<div class="head-top-menu">
			<!--{eval 
				$main_menus = $_CFG['main_menuid'] ? $_G['loader']->variable('menu_' . $_CFG['main_menuid']) : '';
				$menu_count = count($main_menus);
				$menu_index = 0;
			}-->
			<ul class="topmenu">
				<!--{loop $main_menus $val}-->
				<li><a href="{url $val[url]}"{if $val[target]} target="$val[target]"{/if} onfocus="this.blur()">$val[title]</a></li>
				<!--{eval if(++$menu_index>=6) break;}-->
				<!--{/loop}-->
				<!--{if $menu_index>=6 && $menu_count>6}-->
				<li class="topmenu-more"><a href="#" id="head_topmenu_src" rel="head_topmenu_box"><span class="arrwd-ico">更多&nbsp;</span></a></li>
				<!--{/if}-->
				<div class="clear"></div>
			</ul>
		</div>
		<div class="head-top-op">
			<ul class="topmenu">
			<!--{if $user->isLogin}-->
				<li><a href="{url member/login/op/logout}">退出</a></li>
				<li><a href="{url member/index/ac/pm/folder/inbox}">短信箱<span id="login_newmsg" style="display:none;">(0)</span></a></li>
				<li><a href="{url member/index/ac/task}">任务<span id="login_task" style="display:none;"></span></a></li>
				<li><a href="{url member/index}" id="assistant_menu" rel="assistant_menu_box"><span class="arrwd-ico">我的助手</span></a></li>
			<!--{else}-->
				<li><a href="{url member/login}">忘记密码?</a></li>
				<li><a href="{url member/login}">注册</a></li>
				<li><a href="{url member/login}">登录</a></li>
			<!--{/if}-->
			</ul>
			<div class="clear"></div>
		</div>
		<div class="clear"></div>
	</div>
	<!--主菜单 - 更多菜单 -->
	<!--{if $menu_index>=6 && $menu_count>6}-->
	<div id="head_topmenu_box" class="topmenu-more-list">
		<ul>
			<!--{eval $menu_index=0;}-->
			<!--{loop $main_menus $val}-->
			<!--{if ++$menu_index>6}-->
			<li><a href="{url $val[url]}"{if $val[target]} target="$val[target]"{/if} onfocus="this.blur()">$val[title]</a></li>
			<!--{/if}-->
			<!--{/loop}-->
		</ul>
		<!--{if $index>9}--><div class="morecitys"><a href="{url index/city/forward/$forward}">全部城市</a></div><!--{/if}-->
	</div>

	<!--{/if}-->
	<!-- 我的助手 下拉菜单 -->
	<div id="assistant_menu_box" class="topmenu-more-list">
		<ul>
			<li><a href="{url member/index/ac/point}">我的积分</a></li>
			<li><a href="{url member/index/ac/follow}">我的关注</a></li>
			<li><a href="{url member/index/ac/task}">我的任务</a></li>
			<li><a href="{url member/index/ac/myset}">个人设置</a></li>
			<li><a href="{url member/index/ac/face}">修改头像</a></li>
		</ul>
	</div>
</div>
<!-- 主题内容 开始-->
<div class="item-body" id="item-body">
	<div class="item-nav">
		<div class="right">
			<span class="icomoon icon-star"></span><a href="javascript:add_favorite($sid);"><span>关注</span></a>
			<!--{if $_CFG[sharecode]}-->
			<span class="xsplit">|</span>
				<a class="J_prowerfloat" href="javascript:;" id="sharecode" rel="sharecode_box">
					<span class="icomoon icon-newtab" title="分享"></span>分享
				</a>
				<div class="sharecode_box" id="sharecode_box">
					{$_CFG[sharecode]}
				</div>
			<!--{/if}-->
			<!--{if S('item:gourd_enabled') && SUB_NAVSCRIPT == 'item/detail'}-->
				<span class="xsplit">|</span>
				<!--{if !$gourd}-->
				<a href="javascript:;" onclick="item_buy_gourd($sid,'{$MOD[gourd_buy_point]}个{print:member point(point/$MOD[gourd_buy_pointtype])}');return false;"><span class="icomoon icon-leaf ic-green" title="种葫芦"></span>种葫芦</a>
				<!--{/if}-->
				<!--{if $gourd}-->
				<a class="J_prowerfloat" href="javascript:;" id="gourd_image" rel="gourd_box"><span class="icomoon icon-leaf ic-green" title="摘葫芦"></span>摘葫芦</a>
				<div class="gourd_box" id="gourd_box">
					<!--{eval $gps = round($gourd[progress]/$MOD[gourd_condition]*100/20)+1;}-->
					<div class="gourd_pic {if $gourd[status]=='harvest'}gourd_6{else}gourd_$gps{/if}" id="gourd_image" rel="gourd_box"></div>
					<!--{if $gourd[status]=='harvest'}-->
					<div class="gourd_pick">
						<a href="javascript:void(0);" onclick="item_pick_gourd($gourd[id]);return false;" class="abtn2"><span class="gourd-ico">摘取葫芦</span></a>
					</div>
					<!--{/if}-->
					<div class="gourd_content">
						<strong>葫芦藤是什么？</strong>
						<br />会员通过浏览，点评和添加印象可以使葫芦藤成长，当葫芦藤结果后，会员即可采摘取葫芦(获得积分)。
						<br />1 个葫芦为<span class="font_2">{$MOD[gourd_point]}</span>个{print:member point(point/$MOD[gourd_pointtype])}
						<!--{if $gourd[status]=='grow'}-->
						<br />当前葫芦藤成熟度: <span class="font_2">{print round($gourd[progress]/$MOD[gourd_condition]*100)}%</span>
						<!--{else}-->
						<br />剩余葫芦数量: <span class="font_2" id="ground_num" num="{print $gourd[total]-$gourd[num]}">{print $gourd[total]-$gourd[num]}</span>个
						<!--{/if}-->
					</div>
				</div>
				<!--{/if}-->
			<!--{/if}-->
		</div>
		<a href="{url modoer/index}">{if $subject[aid]}$_CITY[name]{else}首页{/if}</a>
		&nbsp;&raquo;&nbsp;
		{print:item category_nav(subject/$subject)}
		&nbsp;&raquo;&nbsp;
		$subject[name]{if $subject[subname]}($subject[subname]){/if}

	</div>
	<div class="item-banner" id="item_banner" style="background:url('{if $tplsetting[banner]}{URLROOT}/$tplsetting[banner]{else}{ITEM_TPL_DIR}/images/banner.png{/if}')">
		<!--{eval 
			$title_offset = $tplsetting[title_offset]?$tplsetting[title_offset]:'30,20';
			list($t,$l) = explode(',',$title_offset);
		}-->
		<div class="item-title" id="item_title" style="top:{$t}px;left:{$l}px;">
			<h1{if $tplsetting[title_color]} style="color:$tplsetting[title_color];"{/if}>$subject[name]{if $subject[subname]}($subject[subname]){/if}</h1>
		</div>
	</div>
	<ul class="item-menu">
		<!--{loop $links $i $link}-->
		<!--{if $i==0}-->
		<li class="index"><p{if $link[flag]==SUB_NAVSCRIPT} class="selected"{/if}><a href="$link[url]">$link[title]</a></p></li>
		<!--{else}-->
		<li><p{if $link[flag]==SUB_NAVSCRIPT} class="selected"{/if}><a href="$link[url]">$link[title]</a></p></li>
		<!--{/if}-->
		<!--{/loop}-->
		<li class="manage">
			<p><a id="item_manage_menu" rel="item_manage_menu_box" href="{url item/member/ac/g_subject}">管理主题</a></p>
		</li>
	</ul>
	<div class="clear"></div>

